#pragma once

#include <QtWidgets/QMainWindow>
#include <QtNetwork/QTcpServer>
#include <QtNetwork/QTcpSocket>
#include "ui_TCPServer.h"

class TCPServer : public QMainWindow
{
	Q_OBJECT

public:
	TCPServer(QWidget *parent = Q_NULLPTR);

	QTcpServer * m_server;
	QTcpSocket * m_socket;

private slots:
	void slotConnection();
	void ReceiveData();
	void on_btnSend_clicked();
	void on_btnClose_clicked();


private:
	Ui::TCPServerClass ui;
};
